home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.9 KB | 56 lines | [TEXT/GEOL] |
- Item 2920715 20-Nov-90 09:59PST
-
- From: BBSF.DEV Babcock & Brown, Michael Harper,AST
-
- To: KRIPALU Kripalu Ctr, Michael A Latta,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: A Sybase-MacApp Tip
-
- In response to Mike Latta's message to Lowell Schneider:
-
- -------- cut here ---------
-
- Lowell Schneider:
-
- The problem you speak of is most likely due to the need for the Sybase segments
- to be LOCKED and made RESIDENT. This involves calling the MacApp routines to
- make the segment resident. In Pascal the following does the trick.
-
- { Force the Sybase segment to be memory resident.}
- sybSeg := GetSegNumber(@dbbind);
- SetResidentSegment(sybSeg, TRUE);
- sybSeg := GetSegNumber(@tss_open);
- SetResidentSegment(sybSeg, TRUE);
-
- [ similar text deleted]
-
- Mike Latta
-
- -------- cut here ----------
-
- May I point out several things:
-
- 1) The segment relocation is most likely your problem. I have an alpha from
- Sybase (4.0.1) that solves this problem in the Sybase code. However, if you
- are running TCPort, the TCP/IP segments are still running around.
-
- Moral: Be sure to lock down not only Sybase segments, but also any network
- driver segments, just to be safe. (I guarantee that it is necessary to lock
- down the "TCPort" and "sockets" segments.)
-
- 2) The above code is one solution to segments being unloaded & relocated.
- Here's another, perhaps easier one to implement.
-
- Create a "res!" resource in your application that contains the names of the
- segments which you would like to remain resident. I have gleaned from the
- MacApp source code that any segments whose name resides in such a resource is
- immune to MacApp's UnloadAllSegments. I've tried this and it works great.
-
- Michael J. Harper
- Senior Software Developer
- Babcock & Brown, Inc.
- BBSF.DEV
-
-